import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from 'material-ui/styles'

import loadingImage from '../../static/image/loading.gif'
import style from './style'

const LoadingStatus = props => (
  <div className={props.classes.loadingModal}>
    <img className={props.classes.loadingImage} src={loadingImage} alt="加载中..." />
  </div>
)

export default withStyles(style)(LoadingStatus)

LoadingStatus.propTypes = {
  classes: PropTypes.objectOf(Object),
}
